<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/sks/cms/page/share/taglib.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	String menuName = request.getParameter("menuName") == null ? ""
			: (String) request.getParameter("menuName");
%>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="租房,买房,三棵松,地产,中介" />
<meta name="description" content="三棵松地产" />
<title>三棵松地产</title>
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/css/frontpages/houseList.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/css/frontpages/common.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/css/frontpages/BrightSide.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/css/frontpages/mytestcss.css" />
<link rel="stylesheet" type="text/css" media="screen"
	href="<%=basePath%>sks/frontpages/district/district.css" />
<script type="text/javascript" src="/js/jquery-1.3.1.min.js"></script>
<script type="text/javascript" src="<%=basePath%>sks/js/frontpages/jquery.cookie.js"></script>
<script language="javascript">
//创建一个showhidediv的方法，直接跟ID属性
function showhidediv(id){
var sbtitle=document.getElementById(id);
if(sbtitle){
   if(sbtitle.style.display=='block'){
   sbtitle.style.display='none';
   }else{
   sbtitle.style.display='block';
   }
}
}
</script>
</head>
<body onload="javascript:changeMenu('<%=menuName%>');">
<jsp:include page="../header.jsp"></jsp:include>


<embed src="http://localhost:8080/upload/house/123.swf" quality="high" width="249" height="200" align="middle" allowScriptAccess="always" allowFullScreen="true" mode="transparent" type="application/x-shockwave-flash"></embed>
<%-- <embed width="50%" height="50%" name="plugin" src="<%=basePath %>upload/house/123.swf" type="application/x-shockwave-flash">
 --%>

<!-- <object width="100%" height="100%" id="movie_player" data="http://js.tudouui.com/bin/player_online/TudouVideoPlayer_Homer_NewSkin_6.swf" type="application/x-shockwave-flash">
<param value="true" name="allowFullScreen">
<param value="always" name="allowscriptaccess">
<param value="http://js.tudouui.com/bin/player_online/TudouVideoPlayer_Homer_NewSkin_6.swf" name="movie">
<div class="player_html5">
<div style="height:100%" class="picture">
<div style="line-height:460px;">
<span style="font-size:18px">您还没有安装flash播放器,请点击
<a target="_blank" href="http://www.adobe.com/go/getflash">这里</a>安装
</span>
</div>
</div>
</div>
</object> 
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="600" height="600">
  <param name="movie" value="<%=basePath %>upload/house/123.swf" />
  <param name="quality" value="high" />
  <param name="wmode" value="opaque" />
  <param name="swfversion" value="8.0.35.0" />
</object> -->

</body>
<script type="text/javascript">
$(document).ready(function(){
	changeMenu('<%=menuName%>');
	toLoginstatus();
});

function toLoginstatus(){
	var user =  '${user}';
	if(user!="nobody"){
		$.cookie("individual",user,{expires:1});
	}
}
function add_attentioncommunity(cid)
{
	var user =  '${user}';
    var a=$.cookie('individual');
	var buildingId = document.getElementById("buildingId").value;
	if ('${user}'=="nobody" || !a)
	{
		alert("请先登录！");
	    window.location.href='/sks/privilege/users/logon.do';
	}else{
		$.post("/sks/districtCommunity.do", {method:"add_attentioncommunity","buildingId":buildingId},
			    function (data){
					alert(data[0].message);
			    }, "json");
	}
};
</script>
</html>